﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(BuyerMetadata))]//使用BuyerMetadata对Buyer进行数据验证
    public partial class Buyer : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        #endregion

    }
    public class BuyerMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "唯一标识", Order = 1)]
			public object RowGuid { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "操作时间", Order = 2)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			public DateTime? CreateTime { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "操作员", Order = 3)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object CreatePerson { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "主办人姓名", Order = 4)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object BuyerName { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "客户等级", Order = 5)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object Customerlevel { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "性别", Order = 6)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object Sex { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "身份证号", Order = 7)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object IDNo { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "固定联系电话", Order = 8)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object Tel { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "手机", Order = 9)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object Mobile { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "所属区域", Order = 10)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object Area { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "所在单位", Order = 11)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object Company { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "联系地址", Order = 12)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object Address { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "邮政编码", Order = 13)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object ZIPCode { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "职业", Order = 14)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object Occupation { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "学历", Order = 15)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object Degree { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "电子邮箱", Order = 16)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object Email { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "传真", Order = 17)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object Fax { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "联系人", Order = 18)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object Linkman { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "联系人电话", Order = 19)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object LinkmanTel { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "备注", Order = 20)]
			[StringLength(4000, ErrorMessage = "长度不可超过4000")]
			public object Remark { get; set; }


    }


}

